/**
 * 通过meta.role判断是否与当前用户权限匹配
 * @param roles
 * @param route
 */
 const permission = {
  state: {
    buttonPageObj:{},//拥有页面权限的按钮
    secondRouters:{}
  },
  mutations: {
    SET_buttonPageObj: (state, buttonPageObj) => {
    	state.buttonPageObj = buttonPageObj;
    },
    SET_SECONDROUTERS:(state,routers)=>{
    	state.secondRouters = routers
    }
  }
}

export default permission
